Add a style class to model buttons
authorMatthias Clasen <mclasen@redhat.com>
Tue, 22 Apr 2014 15:04:40 +0000 (11:04 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 22 Apr 2014 15:04:40 +0000 (11:04 -0400)
This will let us stop using the class name in Adwaita, and will
help with some future additions.

gtk/gtkmodelbutton.c

index 0787e045dd6d8b7cc08ffd69f231d7572ac7a234..670f02f435d4f47043efd544ec8a8981da701e7b 100644 (file)
@@ -595,6 +595,7 @@ gtk_model_button_init (GtkModelButton *button)
   gtk_container_add (GTK_CONTAINER (button->box), button->image);
   gtk_container_add (GTK_CONTAINER (button->box), button->label);
   gtk_container_add (GTK_CONTAINER (button), button->box);
+  gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (button), "modelbutton");
 }
 
 GtkWidget *